package com.sims.action.courseChart;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.sims.service.CourseChartService;
import com.sims.util.ActionEnhanced;
import com.sims.util.Constant;

@SuppressWarnings("serial")
public class FindCourseChartAction extends ActionEnhanced {

	private List list = new ArrayList();
	
	@Autowired
	private CourseChartService courseChartService;

	public List getList() {
		return list;
	}
	public void setList(List list) {
		this.list = list;
	}
	
	@Override
	public String execute() {
	
		result = courseChartService.findCourseChart(list);
		if (result.containsKey(Constant.SUCCESS)) {
			System.out.println("success");
			return SUCCESS;
		}
		return ERROR;
	}
}
